package com.yb.strategy;

public class StrategyService {

    StrategyProperties properties;

    public StrategyProperties getProperties() {
        return properties;
    }

    public void setProperties(StrategyProperties properties) {
        this.properties = properties;
    }

    public int  doMethod(){
        Context context = new Context(StrategyFactory.getInstance(properties.getName()));
        return context.doOperation(properties.getStart(),properties.getEnd());
    }
}
